// pages/profile/profile.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      nickName:"",
      avatarUrl:""
  },
  onLoad: function (options) {
      wx.getUserInfo({
          success:  (res)=> {
              this.setData({
                  nickName: res.userInfo.nickName,
                  avatarUrl: res.userInfo.avatarUrl,
              })
          },
      })
  },
})